import os
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
url = "file:///" + os.path.abspath("../html1") + "/radio-checkbox.html"
driver.get(url)
driver.maximize_window()
wr = driver.find_element(By.ID, 'boy')
time.sleep(2)
wr.click()
print(wr.is_selected())
print(driver.find_element(By.ID, 'girl').is_selected())
driver.find_element(By.ID, 'girl').click()
print(driver.find_element(By.ID, 'girl').is_selected())

driver.quit()
